<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>MES Report for the month</title>
<style type="text/css">
<!--
@page { margin: auto;
		size : landscape;}

a:link {
	text-decoration: none;
	color: #000000;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
	color: #FF0000;
}
a:active {
	text-decoration: none;
	color: #000000;
}
.style16 {
	font-size: 12px;
	font-family: "Times New Roman", Times, serif;
	page-break-after: always;

}
.style17 {font-size: 12px; font-family: "Times New Roman", Times, serif; font-weight: bold; }
-->
</style>
</head>
<h2>MES - Import Shipment <?php echo CHtml::encode($period); ?> </h2>
<?php foreach($models as $n=>$model): $r++; ?>
<?php if($r%12 == 0): ?>
<table width="970" border="1" cellpadding="0" cellspacing="0"  class="style16">
	 	 <tr align="center">
     	 <th width="50" scope="col">Date In </th>
			<th width="80" scope="col">D/O Number </th>
	    <th width="120" scope="col">Supplier</th>
	        <th width="72" scope="col">Invoice</th>
	        <th width="65" scope="col">Value<br />S$</th>
	        <th width="115" scope="col">Inward Permit </th>
	        <th width="140" scope="col">Consignee</th>
	        <th width="84" scope="col">Date Out </th>
	        <th width="100" scope="col">Outward Permit </th>
	      	</tr>
<?php endif; ?>

<tr height = '50'  align='center'>
	   <th scope="col"> <?php echo CHtml::encode($model->ship); ?> </th>
		<th scope="col"><a href="javascript:popup(' . "'mespermitedit.php?mesid=%s&edit=1&print=1'" . ')">%s</a></th>',$id,trim($do));
	    <th scope="col"> <?php echo CHtml::encode($model->ship); ?> </th>
	    <th scope="col"> <?php echo CHtml::encode($model->ship); ?> </th>
	    <th scope="col" align="center">%s</th>',trim(number_format($value,2,".",",")));
	    <th scope="col"> <?php echo CHtml::encode($model->ship); ?> </th>
	    <th scope="col"> <?php echo CHtml::encode($model->ship); ?> </th>
	    <th scope="col"> <?php echo CHtml::encode($model->ship); ?> </th>
	    <th scope="col"> <?php echo CHtml::encode($model->ship); ?> </th>
</tr>
<?php echo CHtml::encode($model->getAttributeLabel('id')); ?>:
<?php echo CHtml::link($model->id,array('show','id'=>$model->id)); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('ship')); ?>:
<?php echo CHtml::encode($model->ship); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('uid')); ?>:
<?php echo CHtml::encode($model->uid); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('old_datein')); ?>:
<?php echo CHtml::encode($model->old_datein); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('po')); ?>:
<?php echo CHtml::encode($model->po); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('invoice')); ?>:
<?php echo CHtml::encode($model->invoice); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('sdo')); ?>:
<?php echo CHtml::encode($model->sdo); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('con')); ?>:
<?php echo CHtml::encode($model->con); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('conid')); ?>:
<?php echo CHtml::encode($model->conid); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('qty')); ?>:
<?php echo CHtml::encode($model->qty); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('indesc')); ?>:
<?php echo CHtml::encode($model->indesc); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('cid')); ?>:
<?php echo CHtml::encode($model->cid); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('old_odate')); ?>:
<?php echo CHtml::encode($model->old_odate); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('subcertid')); ?>:
<?php echo CHtml::encode($model->subcertid); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('datein')); ?>:
<?php echo CHtml::encode($model->datein); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('dateout')); ?>:
<?php echo CHtml::encode($model->dateout); ?>
<br/>

<?php endforeach; ?>
<br/>